package com.smart.framework.util;

import java.util.Map;
import java.util.Set;

/**
 * <p><b>Description:</b>  TODO
 * <p><b>Company:</b>
 *
 * @author created by Jesse Xu at 15:07 on 2019/9/23
 * @version V0.1
 * @classNmae CollectionUtils
 */
public class CollectionUtils {
    public static boolean isEmpty(Map map){
        if(map!=null&& map.keySet().size()!=0){
            return false;
        }
       return true;
    }

    public static boolean isNotEmpty(Map map){
        if(map!=null&& map.keySet().size()!=0){
            return true;
        }
        return false;
    }

    public static boolean isEmpty(Set set){
        if(set!=null&& set.size()!=0){
            return false;
        }
        return true;
    }

    public static boolean isNotEmpty(Set set){
        if(set!=null&& set.size()!=0){
            return true;
        }
        return false;
    }
}
